<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.yaodian100.crm.workflow.entity.WorkFlowNode" %>
<%@taglib uri="/WEB-INF/tld/pageutil.tld" prefix="pu"%>
<%@taglib uri="/WEB-INF/tld/pageable.tld" prefix="pageable"%>
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt-rt"%>


<c-rt:set var="tp" value="${pu:pageableTag('tppa', 5, 10)}"/>
${pu:criteriaForName('com.yaodian100.crm.cs.entity.MustInquireAnswer') }
${pu:criteriaAdd(pu:criteria('eq', 'mustInquire.id', pu:toLong(param.miId))) }
${pu:criteriaAddOrder(pu:criteriaOrderDesc('createDate')) }
<c-rt:set var="mias" value="${pu:criteriaResult(tp)}"/>
<table class="tb-data" width="100%">
<thead>
<tr>
<th><input type="button" value="新增回答" onclick="doAR('<%=application.getContextPath() %>/cs/mustInquire/page.do?iamlazy=updateAnswer&miId=${param.miId }','dialog')"/></th>
<th>id</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<c-rt:forEach items="${mias}" var="mia">
<tr>
<td>
<input type="button" value="删除" onclick="if(confirm('確定刪除？'))doAR('<%=application.getContextPath()%>/cs/mustInquire/deleteAnswer.do?id=${mia.id}&miId=${param.miId }', 'dialog')"/>
<input type="button" value="编辑" onclick="doAR('<%=application.getContextPath() %>/cs/mustInquire/page.do?iamlazy=updateAnswer&id=${mia.id }&miId=${param.miId }','dialog');"/>
</td>
<td>${mia.id }</td>
<td>${mia.description }</td>
</tr>
</c-rt:forEach>
</tbody>
</table>
<c-rt:set var="url">
<%=application.getContextPath() %>/cs/mustInquire/page.do
</c-rt:set>
<pageable:Pageable url="${url}" formname="miaForm" escapeparams="AJAX,refreshZone,iamlazy" parameter="iamlazy=listAnswer&AJAX=true&refreshZone=dialog=${param.miId}" key="tppa"></pageable:Pageable>